<?php

namespace App\Models\Index;

use Illuminate\Database\Eloquent\Model;

class LiveAmuseCate extends Model
{
    public $table = 'live_amuse_cate';
    public $timestamps = false;

    #获取分类ID
    public static function getAmuseCateIds()
    {
        $data = self::query()->orderBy('sort','asc')->paginate(5)->toArray();
        if (empty($data)) {
            return [];
        } else {
            return $data;
        }
    }

    #获取分类列表
    public static function getAmuseCateList()
    {
        $data = self::query()->orderBy('sort','asc')->paginate(25)->toArray();
        return $data;
    }
}
